/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.wallet.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 账户
 *
 * @author
 * @date 2022-08-09 11:27:36
 */
@Data
@TableName("account")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "账户")
public class Account extends Model<Account> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="主键ID")
    private Long id;

    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private String createBy;

    /**
     * 修改人
     */
    @ApiModelProperty(value="修改人")
    private String updateBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty(value="修改时间")
    private LocalDateTime updateTime;

    /**
     * 用户ID
     */
    @ApiModelProperty(value="用户ID")
    private Long userId;

    /**
     * 私钥
     */
    @ApiModelProperty(value="私钥")
    private String privateKey;

    /**
     * 逻辑删除
     */
    @ApiModelProperty(value="逻辑删除")
	@TableLogic
    private String delFlag;

    /**
     * 主网（0：以太坊，1：波场）
     */
    @ApiModelProperty(value="主网（1：以太坊，2：波场）")
    private String mainNetwork;

    /**
     * 地址
     */
    @ApiModelProperty(value="地址")
    private String address;


//	/**
//	 * 币种（0：USDT）
//	 */
//	@ApiModelProperty(value="币种（1：USDT）")
//	private String currency;


	@TableField(exist = false)
	private String balance;

	@TableField(exist = false)
	private String email;

	@TableField(exist = false)
	private String currency;

}
